import React, { lazy, Suspense } from 'react';
import { Switch, Route } from 'react-router-dom'
const Step1 = lazy(() => import('@/views/Step1'));
const Step2 = lazy(() => import('@/views/Step2'))
const Step3 = lazy(() => import('@/views/Step3'))
const Notfind = lazy(() => import('@/views/Notfind'))
const Regist = () => {
    return (
        <Suspense>
            <Switch>
                <Route path='/regist/step1' component={Step1}></Route>
                <Route path='/regist/step2' component={Step2}></Route>
                <Route path='/regist/step3' component={Step3}></Route>
                <Route component={Notfind}></Route>
            </Switch>
        </Suspense>
    );
}

export default Regist;
